package com.example.gyj.redis;

/**
 * redis key
 * @author Gao
 * @date 2018/10/31
 */
public class GoodsKey extends BasePrefix {

    private GoodsKey(int expireSeconds, String prefix) {
        super(expireSeconds, prefix);
    }

    /**
     * 商品列表的redis前缀
     */
    public static GoodsKey getGoodsList = new GoodsKey(60, "goodsList");

    /**
     * 商品详情页的redis前缀
     */
    public static GoodsKey getGetGoodsDetail = new GoodsKey(60, "goodsDetail");

    /**
     * 秒杀商品库存
     */
    public static GoodsKey getSeckillGoodsStrock = new GoodsKey(0, "gs");

}
